
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Pyramid Ratings | The REAL Estate Research
</title>

<link rel="icon" type="image/png" href="images/final logo.jpg"/>
<link rel="stylesheet" type="text/css" href="styles/style_home.css">
<link rel="stylesheet" type="text/css" href="styles/Cart.css" />
<link rel="stylesheet" type="text/css" href="styles/Checkout_ShippingAddress.css"/>
<link rel="stylesheet" type="text/css" href="styles/jquery.simplyscroll.css">
<link rel="stylesheet" type="text/css" media="screen" href="vallenato/vallenato.css" >

<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.simplyscroll.min.js"></script>
<script type="text/javascript" src="vallenato/vallenato.js"></script>
<script type="text/javascript" src="js/jquery.corner.js"></script>
<script type="text/javascript" src="js/modernizr.js"></script>

<script type="text/JavaScript">

$('#whiteTransparent').corner("bottom 3px");
$('#whiteTransparent').corner("5px");


</script>

<script type="text/javascript">

</script>
<script>
contextInfo = new Object(); 
contextInfo['projects'] = "";
$(document).ready(function(){

	$.ajax({url:"rest/contact/retrieveFeaturedProperty.php",
		type:'POST',
		data : {featured:'Y'},
		success:function(result){
		if(result){
			//console.log('success');
			var data = JSON.parse(result);
			//console.log(data);
			var dataText = "";
			if(data.success == true){
				var projects = data.projects;
				contextInfo['projects'] = data.projects;
				for(var key in projects){
					var htmlText = '<li><a href=\'javascript:void(0)\'><img id="'+key+'" src="images/scroll/'+projects[key].projectId+'.jpg" width=\'290\' height=\'200\' title=\''+projects[key].projectName+'\'></a></li>'
					dataText = dataText + htmlText;
				}
			}else{
			
			
			}
			//console.log(dataText);
			document.getElementById('scroller').innerHTML=dataText;
			(function($) {
				$(function() {
					$("#scroller").simplyScroll({
						pauseOnTouch: true,
						pauseOnHover: true
					});
				});
			})(jQuery);
			if(!Modernizr.input.placeholder){

	$('[placeholder]').focus(function() {
	  var input = $(this);
	  if (input.val() == input.attr('placeholder')) {
		input.val('');
		input.removeClass('placeholder');
	  }
	}).blur(function() {
	  var input = $(this);
	  if (input.val() == '' || input.val() == input.attr('placeholder')) {
		input.addClass('placeholder');
		input.val(input.attr('placeholder'));
	  }
	}).blur();
	$('[placeholder]').parents('form').submit(function() {
	  $(this).find('[placeholder]').each(function() {
		var input = $(this);
		if (input.val() == input.attr('placeholder')) {
		  input.val('');
		}
	  })
	});

}
			
		}
		},
		error:function(result){
			//console.log('failure');
			//console.log(result);
		}
	});

	$('#quickContactSubmit').click(function () {
	    alert('clciked');
	    var name = document.getElementById('name').value;
	    var phoneNumber = document.getElementById('phoneNumber').value;
	    alert(name + phoneNumber);

	    $.ajax({
	        url: "rest/contact/saveContacts.php",
	        type: 'Get',
	        data: {
	            name: name,
	            contact: phoneNumber
	        },

	        success: function (result) {
	            if (result) {
	                var response = JSON.parse(result);
	                if (response.success == true) {

	                    alert('in true');
	                    alert(response.success);
	                } else {
	                    alert('in false');
	                    alert(response.success);
	                }
	            }
	        },
	        error: function () {
	            console.log('failure');

	        }
	    });
	});

	
	$('#scroller').delegate('li','click',function(event) {
		var key = event.target.id;
		var projectDetails = contextInfo['projects'];
		if(projectDetails == ""){
		return;
		}
		var projectId = projectDetails[key].projectId;
		document.getElementById('innerImage').src='images/scroll/'+ projectId +'.jpg';
		var projectDetailsInfo = '<h3>'+ projectDetails[key].projectName;
		for(var i = 0 ; i < projectDetails[key].ratingStar ; i++){
			projectDetailsInfo += '&nbsp;<img src="images/icons/star/Favourites.png" height="15" width="15"/>'
		}
		projectDetailsInfo +='<img title="Rating Standards" src="images/icons/rating/log.png" height="30" width="30" style="float:right;margin-right:20px;"/></h3><hr />'
		projectDetailsInfo += projectDetails[key].projectDesc;		
		document.getElementById('projectDetailsInfo').innerHTML = projectDetailsInfo;
		document.getElementById('projectDetailsInfo').innerHTML = projectDetailsInfo;
		document.getElementById('projectIdContactForm').value = projectId;
		document.getElementById('light').style.display='block';
		document.getElementById('fade').style.display='block';		
	 });
	 
	 var validate = function(type,testValue){
		var emailRegex =/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
		var mobileRegex =/^[0-9]\d{9}$/g;
		var alphaRegex =/^[A-Za-z ]+$/g; 
		var pinRegex =/^[0-9]\d{5}$/g;
		if(type == 'alpha' ){
			type=alphaRegex;
		}else if (type == 'pin'){
			type=pinRegex;
		}else if (type == 'address'){
			type=addressRegex;
		}else if (type == 'mobile'){
			type=mobileRegex;
		}else{
			type=emailRegex;
		}
		if(type.test(testValue)){		
			return true;
		}else {
			return false;
		}
	}
	
	$("#fname").blur( function(){
		if(this.value && !validate('alpha',this.value)){
			alert('Incorrect Input');
		}	
	});
	$("#lname").blur( function(){
		if(this.value && !validate('alpha',this.value)){
			alert('Incorrect Input');
		}	
	});
	$("#email").blur( function(){
		if(this.value && !validate('email',this.value)){
			alert('Incorrect Input');
		}	
	});
	$("#contact").blur( function(){
		if(this.value && !validate('mobile',this.value)){
			alert('Incorrect Input');
		}	
	});
	
	$('#contactFormSubmit').click( function(){
		var fname = $("#fname").val();
		var lname = $("#lname").val();
		var email = $("#email").val();
		var contact = $("#contact").val();
		var projectId = $("#projectIdContactForm").val();
		if(!validate('alpha',fname) || !validate('alpha',lname) || !validate('email',email) || !validate('mobile',contact)){
			alert('Error');
			return;
		}
		$.ajax({url:"rest/contact/saveContactProject.php",
			type:'POST',
			data : {
			fname : fname,
			lname : lname,
			email : email,
			contact : contact,
			projectId : projectId
			},
			success:function(result){
				var data = JSON.parse(result);
				if(data.success == true){
					alert('Thank You for your request.');
				} else {
					alert('Error. PLease Try again later');
				}
			},
			error:function(result){
				alert('Error. PLease Try again later');
			}
		});
	 });
	


});


</script>

</head>

<body>

<div class="header">
    <div style="width:940px; height: 60px; text-align:left; margin-left: auto; margin-right: auto;vertical-align:middle;">
		<div class ="logo">
		<table border="0">
		<tr>
		<td >
		<div style="none">
		
		<img src="images/final logo.jpg" width="69" height="53" border="0" id="logo" >
		</div>
		</td>
		<td > 
		<h1>PYRAMID RATINGS</h1>
		</td>
		
		</tr>
	   
		</table>
		</div>
           
        <div style="float:right;padding-top:30px;">
        <a href="index.html" class="active">Home</a>
        <a href="about.html">About us</a>        
        <a href="process.html">Process</a>
        <a href="contact.html">Contact us</a>
        <a href="pdfs/Pyramid_Buyer.pdf" target="_blank">Download E-magazine</a>

 	  	</div>
    </div>
</div>
  
  
<div class="page">
<table align="center" border="0" width="960" cellpadding="0">

<tr align="right">
<td width="318" height="178" valign="top" >
    <table border="0" id="whiteTransparent" width="100%">
    <tr><td><h1>The REAL estate rating</h1></td></tr>
    </table>

</td>
<td colspan="3"></td>

<td width="389" valign="top" >
<br />

	 <div class="accordion-header">Quick Contact</div>
     <div class="accordion-content">

         <input id="name" placeholder="Name" class="quickContactText" />    
         <input id="phoneNumber"  placeholder="Phone number" class="quickContactText" /> 
         <a id="quickContactSubmit" class="sendButton" onclick = ""> Call me</a>

     </div>


</td>
</tr>

<tr align="right">
<td height="84"></td>
<td colspan="3"></td>

<td valign="top"  >
    
     
</td>
</tr>
<tr align="center">
<td height="20" colspan="5" >




 

</td>

</tr>

</table>

<br><br><br>
<br>

<table border="0" width="850" align="center" >
<tr><td style="text-align:justify;width:425px;padding:30px;vertical-align:text-top;padding-top:5px;">
<h1>Pyramid Ratings</h1> 
<hr class="style-two" />
Pyramid Ratings is an autonomous rating and research firm. Its first venture is into Real Estate Sector where we facilitate buyers, builders & investors to identify well rated and researched projects both in the "residential & commercial segment". We formulate rating process and techniques to differentiate the great from the good.
<br><br>
The rating can be assigned to residential,commercial,office,townships,mixed development projects etc.
<br><br>

We engage well trained, professional and experienced research team who is dedicated in the evaluation and analysis of the project.
<br><br>

The rating process is unilaterally developed and standardized process.


</td>
</tr>
</table>

</div>


<!-- Start #footer -->
<div id="footer">


<table border="0" width="850" align="center"  >
	<tr>
		<td width="50%">		
		<a href="privacydisclaimer.html"> Privacy policy & Disclaimer </a>
		</td>
		<td align="right">
        <a href="http://facebook.com" target="_blank"><img src="images/icons/social/facebook.png" height="30" width="30"/></a>
        <a href="http://facebook.com" target="_blank"><img src="images/icons/social/twitter.png" height="30" width="30"/></a>
        <a href="http://facebook.com" target="_blank"><img src="images/icons/social/google.png" height="32" width="32"/></a>
		</td>
	</tr>
    <tr>
		<td width="50%" align="left">		
			<ul>
				<li class="email"><span>Email</span> <a href="mailto:&#99;&#111;&#110;&#116;&#97;&#99;&#116;&#64;&#112;&#121;&#114;&#97;&#109;&#105;&#100;&#114;&#97;&#116;&#105;&#110;&#103;&#115;&#46;&#99;&#111;&#109;">&#99;&#111;&#110;&#116;&#97;&#99;&#116;&#64;&#112;&#121;&#114;&#97;&#109;&#105;&#100;&#114;&#97;&#116;&#105;&#110;&#103;&#115;&#46;&#99;&#111;&#109;</a></li>
				<li class="tel"><span>Cell </span> <a>+91 8697996666 / 9974976795</a></li>
			</ul>
		</td>
		<td align="right">
       
		</td>
	</tr>
	<tr><td colspan="2" align="center">		
		All rights reserved &copy; 2014 &#119;&#119;&#119;&#46;&#112;&#121;&#114;&#97;&#109;&#105;&#100;&#114;&#97;&#116;&#105;&#110;&#103;&#115;&#46;&#99;&#111;&#109;  
	</td></tr>
</table>
<br />
</div>
<!-- End #footer -->
  
</body>
</html>
